package com.jiuyuan.service;

import com.jiuyuan.entity.Department;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jiuyuan.entity.vo.RespBean;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jiuyuan
 * @since 2023-02-15
 */
public interface IDepartmentService extends IService<Department> {

    //查询所有部门
    List<Department> allList();

    //添加部门
    RespBean add(Department department);

    //删除部门
    RespBean delete(Integer id);
}
